import { createSlice } from '@reduxjs/toolkit';

const layoutSlice = createSlice({
	name: 'layout',
	initialState: {
		mode: 'full'
	},
	reducers: {
		setLayoutMode(state, action) {
			return { ...state, mode: action.payload };
		}
	}
});

export const { setLayoutMode } = layoutSlice.actions;
export default layoutSlice.reducer;
